<?php

header('Content-Type: text/plain; charset=utf-8');

require_once("cfg/def.php");
require_once("lib/timer.class.php");
require_once("models/uid.class.php");

$tt = new Timer(true);

$phone = "79045156626";
$passw = "tiger";

try
{
	$_POST["phone"] = $phone;
	//$_POST["passw"] = $passw;
	//unset($_COOKIE['sid']);
	unset($_SESSION['sid']);
	unset($_SESSION['uid']);
	
	$user = new UID();
	//$user->register($phone, "scott", $passw);
	$ok = $user->identify();
	echo $user->info."\n";
	echo $ok ? "OK" : "Not identificated";
	echo "\n";
}
catch(Exception $e)
{
	echo $e;
}



echo "test\n";

echo $tt->stop();

